Copy most of DynJS REPL and provide a way for the Repl to hold a ref-handle.
Remove the requirement of finish() when done.  Child vm's share the loop
with their parent.
Remove debug.