[WIP] Rails 4 upgrade

**DO NOT MERGE YET, WORK IN PROGRESS!**

To get some first feedback I'm already creating this pull request. Of course we will cleanup the commits when it's done for merging.

There will me multiple barclamp pull requests linked against this pull request.
Added: https://github.com/crowbar/barclamp-crowbar/pull/1157/files#diff-f95f7579134d98ee1a8cc86d5e43f236R69