Migration from SpecialistDocumentEdition to DocumentRecord

Move attachments to DocumentRecord as they are not currently editioned and the
number of duplicates can cause the 16MB MongoDB document limit to be reached.
Fixups for persistence update
Remove legacy SpecialistDocumentRepository