Support sharing link to a folder

Add support for creating a shared link for a folder. Reuses the existing share_link functionality, as only the path is different.