Add mixins

Allow functionality that isn't specific to a particular table to be defined as a mixin.