upgrade to rails 4 + testing

Not sure what I can do to help deploy this, but I'd love to help in any way!

Closing https://github.com/rubygems/rubygems-status/pull/16 since this Pull Request was branch from it.