Added function share_file_with_user(), class UserShare() and ...

...make use of constant OCS_SHARE_TYPE_LINK in share_file_with_link().
Same here, please put the single instruction on a new line