Use WebDAV endpoint for authentication

Due to https://github.com/owncloud/core/issues/11129 the login hook is not triggered and breaks encryption.

This workaround uses the WebDAV endpoint for basic auth instead of the root.