groupserv: make groupserv core entity-agnostic (ref #302)