Bump Rails to 3.1.12.

Also pin down the Mocha version to avoid potential dependency problems.
Merge pull request #13 from alphagov/bump-rails

Bump Rails to 3.1.12.