Use Rails.cache and Rails.logger

`RAILS_CACHE` and `RAILS_DEFAULT_LOGGER` are deprecated. I've replaced them with `::Rails.cache` and `::Rails.logger`, which serve the same purpose.