convert add_to_team to use new team membership API

Closes #88.

/cc @kbalog