[WIP] Add server<->server sharing

Add support for adding public links from someone to your own owncloud

Fixes #7221
Could you move everything that you have added into the OCA.Sharing.initialize() method ?
Or at least make a utility method and call it for there.

Goal is to make it testable. And the setup/beforeeach block of the unit tests need to init this global code every time.