[WIP] Add server<->server sharing

Add support for adding public links from someone to your own owncloud

Fixes #7221
Note: something I discovered recently: in-place replacing instead of recreating an array:
```
foreach ($children as &$child) [
```
Not sure if wanted here as the current approach might give cleaner results.