[stoney] [WIP] Rails upgrade and start of refactoring

**Don't merge it yet, this is just a preview to get some feedback**
There are still some missing things, i will update the list and pull request from time to time:

- [ ] Barclamp registry
- [ ] View hook system
- [ ] Event system invokes
- [ ] Serversent Events instead of Websockets
- [ ] More AngularJS integration