Stable 7 port

:construction: 

Port to the new framework features in owncloud 7 (database, logger, controllers). Depends on PHP 5.4

Don't merge yet, keeping this open just for reference and to track the process