Upgraded to rails 4.0.2

Security fixes ftw
Merge pull request #447 from andrew/rails-4.0.2

Upgraded to rails 4.0.2