Upgrade to rails 4.1.1

We have some specs failing, so, it is a working in progress.

One group of that failing specs are related to [this issue](https://github.com/rails/rails/issues/14125) reported on rails. 
The other group of specs are related to `flash_messages_helper`, @Irio could you take a look on this when you can?
Also that deadlock that was only happening some times, it's now always happening.