Moved the method that handles errors raisedn in controllers to ApplicationController.

Deleted the module that previously had this method.