User management model mixins and api views.