Implement multiline support in REPL directly.  Fixes multiline input on Node 0.11.14.