Validates the ModelInstanceDocument header against the Model definition.
The model that this ModelInstanceDocument belongs to
the header to validate
Applies commit (genesis|signed|anchor)
Commit (with JWS envelope or anchor proof, if available and extracted before application)
Ceramic context
Optional
state: StreamStateDocument state
ModelInstanceDocument stream handler implementation