Move routes into their own file
Moved handler code into handler

Fixed Mongo connection to happen at startup