Fix urlpath

Move where we modify prepath and postpath so that it's done before
the handler is called.  This means request.URLPath() inside the handler
will point to the route of the handler.