Rewrite specs to more clearly represent expected behaviour - exceptions and 404s on non-local requests are to be rendered with our custom template (such that this template can be overriden by themes in the usual way). Note that requests to the admin interface are considered local.
Add new error handler method that renders the general/exception_caught template
Return the correct status codes for ActiveRecord::RecordNotFound, ActionController::UnknownAction, PermissionDenied and general exceptions.
Clearer setting of status code, addition of notification.
Handle routing errors with our custom template too.
Remove now unused methods
Add logging of any errors.
Add encoding line as we use utf-8 in the tests.
Merge branch 'feature/restore-custom-error-pages' into rails-3-develop