NO-TICKET Comments from antonio

Moved Routes into their own file
Moved pre- and post routing middleware into routes file.

@piotrdonicz