Hook up repl to readline with persistent history