[CDE-340] External editor is not behaving correctly with system-based resources
   - now all calls to EditorApi check if the user has the rigth permissions
   - added unit tests