ENYO-3082: rewire connection between Ares File menu and Phobos

Added support to move functions from Phobos to EnyoEditor
ENYO-3082: change global variable declaration to keep js2-mode checker happy

this is still compatible with jshint
ENYO-3082: Added callbacks to ActionPopup
ENYO-3082: Added a callback to EnyoEditor.switchDocument