use history file

History file is now written on lmi's exit and read on its startup.
Applies just to interactive mode.