refactor(routes): extract the server-side route handlers

Extract the server-side route handlers to a better place to reduce clutter.

Bonus points:
- add routes accessibility test