Performance improvement to data cleanup

There are some supporting pages that have lots of editions. Instead of
running string comparison against all editions titles and bodies
repeatidly, we pre-compute hash digests of all editions and use that
to check against for duplicates.
Include attachments in duplicate checks

Some revisions may only make changes to the attachments.