Add error reporting to the REPL interface
Allow non-default host and port for the REPL interface
Ignore undefined in the REPL interface