distinguish between touch and write
remove debug output
remove some debug output; move code to the right function
Merge pull request #2189 from owncloud/versioning_sync_client

fix versioning for the sync client - distinguish between touch and write operation