First changes for Rails 4 support

This should be enough to help us boot a Rails 4 app with spree and the auth gem.