add 'EXTENSIONS_READY appInit so deprecated events can be registered, fix deleted file open in editor issue, other formatting fixes