api/auth: refactoring addUserToTeam to clear it's steps

This will help to use atomic actions.
Relates to #299.