Upgrade Rails to 3.1.10

Upgraded for security fix; unfortunately doing so broke some tests,
because as of 3.1.8, single quotes are escaped in HTML. Not sure what
the best fix is, but for now I've updated the tests to expect escaped
single quotes.