Rack middleware to provide RESTful routing