Add support for 'extends' option when generating using all-models

Right now there is no way to generate all models using a namespace and extending a base model.
This pull request enables that