Rails 4 upgrade

I've made a few modifications to https://github.com/rubygems/rubygems.org/tree/rails4 and brought everything else up to date. It looks like its all working but let me know if there are any specific parts of the application that you'd like an extra pair of eyes on.

Rails 4 now prefixes jsonp with comments (see #bbc8d10) which I don't think will cause us any issues, but may cause issues for any third party services using our API.

[`4.1.7.1`](http://weblog.rubyonrails.org/2014/11/19/Rails-4-0-11-1-and-4-1-7-1-have-been-released/) or [`4.1.8`](http://weblog.rubyonrails.org/2014/11/17/Rails-3-2-21-4-0-12-and-4-1-8-have-been-released/). :smile: