Moved the route definitions around to make it more extensible without
cluttering the main file.