shifting things around so we can easily move routes stuff to separate module
Moved route functions into a separate file