first commit, just some files copied from owncloud/apps/files_share, some logging added