Make the default history item length to be the same as the limit for the headwords.

So, it is 256 now.

And configurable via the same parameter in the config file: maxHeadwordSize.
Preserve the current index in History list when a single entry is deleted.