Misc changes.

* Added a lot of setopts.
* Converted most echos to prints.
* Added reverse history binding.