Replace output iframe entirely

Setting the srcdoc to the empty string and then back again will erase
the document, but not the window object, so any previous properties
remained. This now creates an entirely new iframe to replace the old
one.
Add dispatcher
Add proxy console