Share tags

I've fixed both major issues mentioned at #10487, so I now consider this review-ready.
I'll also file a PR for contacts which is supposed to fix owncloud/contacts#38.
Curly braces