Fixes #97. Moves the core routes to a separate file

Moves the core routes to a separate file to make the RequestHandler more readable.