some fixes to make the gallery work, this made it necessary to adjust some tests and the encryption code
Dont throw an error when a storage isn't found for shared cache
typos, use, unused and return fixed
make it possible to move files out of a shared mount point
split-up the update script and add unit tests for it