Update Rails to 3.2.12 and add json 1.7.7 to Gemfile