Switched to using classes for handlers
Moved routes to different file
added a dependency injector