Backend parts of #22; Added primaryGroup and constraint logic to model; Added primaryGroup facility to admin panel