ENYO-3082: added edited-data attribute.

The content of this attribute will be used to save file without switching
ace and deimos, thus saving a lot of time before running a preview
ENYO-3082: split saveDoc in saveDoc and saveFile

the latter is required for saveAs
ENYO-3082: renamed saveComplete in analyseData
ENYO-3082: use local variables
ENYO-3082: save edited data when switching files.
ENYO-3082: also updated edited-data when saving file
ENYO-3082: added ProjectSave button (and functions)