Added support for a route invocation handler

A route invocation handler is responsible for invoking routes. The
handler is passed the route and the rest object and must invoke the
route as needed. The handler can act as a central place to add common
request processing and error handling code.