Update dependencies to support Rails 4