Moved the Router code into its own class, will do the same with the Application::getFile() method