DRY'ed up the api key stuff. Added edit/delete buttons to teams