Add Readline::HISTORY based tab-completion.

* Restore the Readline.completion_proc after we exit.