Simple command history for input field

Rolled my own super rudimentary command history for the input field.
Trying to avoid dependencies like GNU readline just for this.

Tests!  Command history has like 10 tests.  Whee!