Factored output out into View object.
Share the environment between evaluations.

In effect, the previous version shared the environment between
evaluations, but only because builtins itself was being side-effected.
window.main(): Got rid of unnecessary variable.