Update dependencies to work with Rails 4