Save the id of shared folders in the image path so we can always recreate the original path
Merge pull request #1587 from owncloud/gallery-share=subfolders

Fix viewing shared subfolders in the gallery app.