Uses rails referer method on request method.
Move exception_logger into base_controller protected methods.

In order to use the exception_logger in controllers of the main app, we moved the method into the base controller protected methods.