Update gem dependencies; allow Rails 4