cleanup mod/filestorage before embarking on further changes to it
reddav: improve and cleanup permission checks