Generated model base class override

This is lacking some tests but shows the basic idea of allowing the
generated model to override the base class of that model (e.g. MyModel as opposed to django.db.models.Model).