Re-factoring of controllers and routes

- all URLs now generated by routes path/url helpers
- removed unused routes
- consolidated jobs and retry controller into failures controller
- some improvements to testing