[WIP] Add server<->server sharing

Add support for adding public links from someone to your own owncloud

Fixes #7221
e.g. add a CORS header to status.php and perform this check client-side. No need to have an additional PHP file in my PoV.