Refactor routing structure, add constants for routes and redirects.