Add input field history: fixes #6.

Any command or message that is sent will now be
appended to a history. Pressing Ctrl+↑ or Ctrl+↓
in the input field will page up and down through
this history and recall that message to the field.

(When the field is empty, the Ctrl key can be omitted.)