Upgrade to Rails 4.2

Update gems and fix depricated/changed configuration parameters.