Add groups

This PR adds groups to the submission system.

Still needs a frontend though.
Could we also have a error code for this too?