Add orm.EntityCreateMixin, drop factory module

This is a work in progress. The creation code appears to work well and be
well-designed, but existing test code must be adjusted to take advantage of the
changes.