Refactors static route mapping to use a custom router

This makes it really easy to add new static routes. It also makes
it a lot easier to read what is happening.