Team repository API

CRUD, queries (simple), Team terms