Update rails configuration defaults and clean Gemfile