In preparation to the upcoming API, most logic is being moved to services. Models function as repositories.
Adds user invitation to teams, and framework for assigning taems Also adds user acc. deletion.