initial port of subprocess_repl
initial port of basic sublimerepl classes