Disentangling the persistence layer from the model layer, step 1.

The dirty state management at the polyclay layer now doesn't know about
attachments. We now replace those methods with attachment-aware ones in
persist(). And that is of course the royal "we".