Refactor pages and windows into named classes

This doesn't provide a functional change, but drastically improves the debuggability of heap dumps for retained window objects.
Remove newline from script output

This improved debugging but over time caused progressively larger page responses and more and more DOM nodes to be created on each render.
Improve error logging for inline scripts
Do not run cleanup for errored views