Use Rails 4.2; Fix deprecations