[FEATURE] Add DocumentValidator using YAML rules

A document validator is added that will act on any instance of the
AbstractDocument and validate it according to type and validation rules
given in YAML configuration.

Related: #45167
Merge pull request #2 from kdambekalns/documentvalidator

[FEATURE] Add DocumentValidator using YAML rules