add debugging REPL

a REPL interface for live debugging (reachable via TCP socket)