Refactor request handler
Add TODO to map_urls
Add middleware
Update README and package.json