keep paths relative to the current user

keep paths relative to the current user, otherwise encryption will not work.

cc @PVince81 This basically works but it breaks the way we show shared galleries, maybe you can have a look at it? If I understand the code correctly all the logic should be in apps/gallery/js/gallery.js Thanks!

fix for https://github.com/owncloud/core/issues/7116