Updated CLI REPL to use libreadline.