Add line editing + history to repl