Upgrade to rails 3.1.11
Upgrade to json 1.7.7