ActiveRecord and ActiveModel 3.1

This pull request upgrades the ActiveRecord and ActiveModel components on `3-0-github` to 3.1.

ActiveRecord 3.0 suffers from severe performance regressions, especially relating to attribute methods, which are mostly resolved in 3.1: https://gist.github.com/charliesome/10448555

cc @github/perf @github/rails3