Upgrades for rails >= 3.1.

* Drop deprecated InstanceMethods.
* Drop deprecated class_inheritable_attribute, user
  class_attribute instead.