Reset the next history entry ID if the history file name changes.
Refactored the backend code.
v0.1.2 @ 2013-01-31