Team and Team Member API

Fixing up team and adding more error checking. Also started working team
member so I can continue error checking for team.