Add TeamManagerTest and fix some bugs with TeamManager.
Add Iterator for TeamManager and some other functionality.
Many many changes.
Many many changes.
Many many changes.