Fix up Gemfile dependencies and requires so that bundling without Rails 4 installed is possible