improve how readonly is handled, user libraries are not read only.
Don't allow Xise files of libraries to be edited.