refactor Gemfile and add newrelic