Moved REPL to its own class, added line continuation.