[stoney] Rails upgrade and start of refactoring

**Don't merge it yet, there will be a required pull request for barclamp-crowbar!**
This is just a preview to get some feedback, it can get merged after the following barclamp-crowbar update.