pulled in updates from ryancheung/exception_logger for Rails 4 compatibility