Changed router to a class, laid foundation for unit testing it