Lots of new team features, and some other utils and fixes.