update 'handler' to be RouteHandler

I decided that it would be best to have a route handler that took the
provided router from the server and from there delegated how to handle a
request