Rails 4.1 support

I also noticed there's an old branch for the rails 4 upgrade that can be deleted from your repository.