Removing Config and HTTPKernel dependencies from Router.