Use cattr_accessor for @@singleton class variable
- Initialize and save ActionCost data in global variable from initializer.
- Use this global variable in middleware in ActionCost::Data.
- alias_method_chain exec_query only in Rails 3.1 and 3.2.
- Use Rails.application.routes for all version of Rails.