controller method modified to either invite existing user to team or register new one.
service code refactored
code refactoring
core method of getting account by email
controller method extended to receive account either by id or email
frontend call implemented to register new user to team
creating the new user and adding him to team done on client side