adding readonly support for stores and files

don't know iff wanted at all, but this little update allows flagging selected files as well as whole stores to be read only - needs a database update