Upgrade to Rails 4 and Ruby 2

What it says on the tin.