Add helper function to determine if a user manages a given team.

Only authenticated teachers that are part of a team can manage it.

Change-Id: Ia20bed78015783ce89eb616babf495c49bb313b3