Moved tenant model generation to the model class itself
Avoid attachning tenant descriptors to models with no specified related name
Added support for db_contraint in intermediary m2m tables