Updated router to work with controllers

Router now routes to a controller class, and called the appropriate HTTP
method in that class instead of loading a file of the right now.