ENYO-3082: fix saveDoc to use saved file data after new file creation
ENYO-3283, ENYO-3543: ProjectWizard can now reuse & load existing source code

When Selecting _Projects_ > _New…_ and choosing an existing folder
Ares proposes to reuse or overwrite the existing source code.  When
reusing it, Ares tries to load the existing `project.json` and webOS
`appinfo.json` files over the default project configuration.

This is a first step toward ENYO-3543 (the remaining part begin to use
providers-provided functions to parse the project folder to infer
existing project info).

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-3082: moved saveAsDoc from Ares to EnyoEditor
ENYO-3283, ENYO-3311: fix indentation

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-3082: fix save before preview from phobos
Merge branch 'master' of github.com:enyojs/ares-project into ENYO-3283

# By Vincent Herilier (6) and others
# Via Vincent Herilier (3) and others
* 'master' of github.com:enyojs/ares-project:
  ENYO-3570: change folded/unfolded assets for the filetree
  ENYO-3570: compact code
  ENYO-3570: remove dead code
  ENYO-3570: Double-click on folder node label does open it too
  Revert "ENYO-3570: change default folder node opening behaviour"
  ENYO-3570: change default folder node opening behaviour
  ENYO-1369: revert wrong removal
  ENYO-3550: Add bootplate-2.3.0-pre.12 in ide.json
  ENYO-1369: shorten lines to ease code review
  ENYO-1369: review comments, improve doc
  ENYO-3555: Fixed loading of options of .design files
  ENYO-1369: set CORS HTTP headers & allow custom user-set HTTP headers
ENYO-3082: make _hideWaitPopup usable in async
ENYO-3082: moved switchToNewTab from Ares to EnyEditor
ENYO-3082: ares in registry is quite convenient to reduce boilerplate...

... using callback when firing events is not really practical.
ENYO-3283: do not reuse the list of templates when importing a project just-created-and-deleted

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
ENYO-3283: reset generation templates templates for real this time…

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>
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)
ENYO-3082: handle show/hide popup in EnyoEditor.saveFile
ENYO-3082: renamed closeDocument in closeDoc