Fix deprecated require warnings in Rails 4.1.

Require module/attribute_accessors instead of class/attribute_accessors. Nothing big here—I just don't like seeing warnings. Tested in Rails 4.1.0.rc1 and 4.0.4.