Fixed URL routing. Use urlparse to parse query string. Remove unused route fields.