Add team management commands

r?

* Note: needs my API changes to be merged