Capture the current bindings for running on a context.
Add preliminary repl support.