Added configuration value to start the editor in read only mode. Also added detection for write permissions on files. These are only used for the local filesystem editing and not any other connection types (does not make sense for those).