Move the share actions to a new SharesController

Fixes #78