Inherit from ActionController::Base instead of ApplicationController.

We don't want to trigger the ApplicationController's filters and layout
when rendering the error pages.