Debugger: use onload and postMessage to allow debugger to reload, and still connect with UI.