Generate mongoIds for embedded documents.

Refactoring the ClientContacts piece.