[Security] Upgrade to Rails 3.2.10 to fix SQL injection vulnerability

See http://weblog.rubyonrails.org/2013/1/2/Rails-3-2-10--3-1-9--and-3-0-18-have-been-released/
for details.
Fix file permissions
Merge pull request #317 from jamestyj/jamestyj-rails-3.2.10

Merged by devtool for VictorLowther