Reverted changes to the core Gemfile and instead added a rails_4_0 appraisal file. Also removed references to rails specific versions in the tests.