ENYO-3082: changed requestCloseDoc to a more useful requestSave (before action)
ENYO-3082: moved save before preview stuff from Ares/Phobos to EnyoEditor
ENYO-3082: Fix jshint errors