Route files

Initial take on route files. Not perfect at the moment but it's a starting point.