Revise how context (sandbox) is handled.

This implementation is more in line with REPL.
Merge pull request #9 from jimlloyd/feature/revise-context-handling

Revise how context (sandbox) is handled.