Moved router to a single file for now
Implemented router mechanism in server