Fixed up the share/unshare actions so they're faster.
Fixed some more issues related to unsharing files/dirs.