refactoring: draw rails routes from request groups

Right now, the Rails routes are implicitly based on the requests that we have. This PR makes that dependency explicit, reducing the number of places that need to change when a new type of request is added.