Rails4 port

Porting the application to Rails 4 is done. As we do not run the application in any productive system, yet, it should be save to merge with master and declare it as "Rails 4 only application".