Synchronize history across sessions; deduplicate history.