Update rspec-rails to v2.14.1.
Update mysql2 to v0.3.15.
Update rails to v4.1.0.rc1, along with some necessary dependencies.
Use protected_attributes for MassAssignment protection.

We should migrate to strong_parameters instead, but lets get the test suite
passing first.

This needs to be above devise_security_extension in the Gemfile, so that it gets
required first.
Configure eager_load.
Remove active_resource.
Use lambda syntax for associations.
#stub! is deprecated, use #stub.
`not_to raise_error(ErrorClass)` is deprecated, don't specify an argument.
#mock is deprecated, use #double.
schema generated with 1.9 syntax.
Replace .scoped with .all.
Use lambdas for scopes.
Don't use return within a block.
Use rspec assertion, rather than minutest.
ActiveRecord::Base#sum with a block has been removed.
ActiveRecord::Base#first no longer takes options.
Don't try and find a template for the anonymous mailer.
#select now compounds, rather than replaces.

Remove selects before doing a count for custom reports.
Force the relation and use Array#count.