Changed all routes and controllers to use services.