Add debugging function exceptionWrap for better exception reporting.
Add exception traceback printing by default to event listeners registered through addEventListener.
Add better exception logging to savePageWithParams.
TODO
Fix: win variable after previous merge
Revert addEventListener back to assuming valid window and using shelve.autoselect global. In onOK call as win.shelve.setupAutoSelect(), which will make