Supply a custom $route implementation, so we can optimize.

The built-in $route doesn't give us any way to resolve a route without switching to it, so we replace it with a new implementation that behaves more like what we need for the server-side work.