Support generating tablenames in more cases.
Extends naming rules to apply to base classes of models.
Merge pull request #248 from davidism/tablename

Support generating tablenames in more cases.