Simplifying the redirect controller, extracting url formatting to its own class
Merge pull request #1250 from elzj/refactor_redirects

Cleaning up the redirect controller