Add coveralls to Gemfile.lock
Add error templates
Move the 404 detection into the routes

This prevents 404s from being logged as errors in New Relic and causing
error notifications to be sent out about every ten minutes or so.