Various fixes needed to support gremlin-repl.

With these changes, gremlin-repl can now use repl-promise instead
of node's repl.
Update context-test to also test for handling of blank line on input.
Merge pull request #10 from jimlloyd/feature/fixes-needed-for-gremlin-repl

Feature/fixes needed for gremlin repl