Add groups

This PR adds groups to the submission system.

Still needs a frontend though.
Hmm, I'll try to get rid of this. Now that I think about it, it's unnecessary.