Added support for native promises in deferredUtils. Some fixes to Editor