Moved routes into their own file and separated routes from application logic (controllers).