[WIP] Group sharding & creation

This implements group sharding & group creation, as well as refactors the state/session handling for users and groups in general.