[stable6] add support for webdav copy to the encryption and versions app

Backport of https://github.com/owncloud/core/pull/9897 to stable6.

@schiesbn @karlitschek @MorrisJobke