expose the ownCloud API, fixes #240, fixes #242