Various improvements to the way entity aliases are generated, and entities are matched to documents.
Remove old stats if they're no longer current.