history: Add history importer.
history: Add history importer.

When history is stored as hash-table, this logs that the history
format is deprecated and appends all the hash-table entries present in
the former format to the root of the history tree.

jmercouris/NeXT,jmercouris/NeXT