Add orm.EntityCreateMixin, drop factory module

This is a work in progress. The `EntityCreatMixin` class does not yet work and
the `entities` module needs several more updates to deal with the change.