Added history to the input function prompt().

  The history was previously one entry "deep".  Now we keep track
 of all history when the program runs, although this isn't saved
 to disk.

  This updates issue #5.