Merge remaining Zentyal changes to openchange master and gets everything sync'ed

@javierag Review php/ files and add appropriate copyright header for every file: GPLv3 or later + author