Add a basic REPL with history support