[WIP] Webodf sync

Successor of https://github.com/owncloud/documents/pull/354

Bugs listed in https://github.com/owncloud/documents/pull/354#issuecomment-54651167
Caused by https://github.com/kogmbh/WebODF/issues/551