DocProps: Make IDocProperties adapt the newly created document

instead of the containing dossier, and set doc properties *after*
creating the new document, so the document can provide metadata
about itself.
DocProperties: Also provide ReferenceNumber and SequenceNumber for document.