Add REPL sockets

sure, although even "run" would be a better name than "repl". "repl" just doesn't sound top-level to me.

Still, though, some random debug stuff? 'log' seams like a good place even if it isn't "really" a log.