Added function share_file_with_user(), class UserShare() and make use of constant OCS_SHARE_TYPE_LINK in functions.