Separated Routes

Cleaned up the main server and moved the routes.