Cleaning up the redirect controller

Simplifying the redirect controller, extracting url formatting to its own class

https://code.google.com/p/otwarchive/issues/detail?id=3658