add possibility to register a SchemaDocument

when a SchemaDocument is register the _type is added to the
corresponding class and the field is also sotre in mongo
when a registered SchemaDocument is fetch from mongo
the cooresponding class is instanciated istead of a dictionnary.
if the SchemaDocument is not registered all is as before