Clarify return values

This function returns `null` when no user is logged-in.
Fix typo
add activity if public shared file/folder was downloaded
Make sure the path passed to the activity manager is normalized