Added REPL#readline.
Moved REPL auto-completion logic into the #complete method.