Bump gem dependencies to use Rails 4.0.x