Fixed URL routing. Use urlparse to parse query string.