Create entity interface and abstract. Add model exceptions.
Merge branch 'develop' into apiscaffold