use new team membership API

Fixes #88.

/cc @kbalog