Small refactor of instantiateWithInstances
Add onStateChange option to loggers

The second parameter is now a function that will be called whenever the state of the logger changes.
It is also called at the time of setup to allow an initialization.
Disable Promise's longStackTrace support

It is now an option in the Logger menu (ctrl-alt-L)