Fix: Shelve edit window failed to close on "ok" because shelve.addEventListener was throwing an uncaught exception because it assumes its called from a browser window.
Fix: Auto-select listener properly installed and removed.
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.
Merge branch 'better_exception_logging' of https://github.com/crass/shelve

Conflicts:
	content/shelve.js
TODO
Fix: win variable after previous merge