auth: added function GetTeam

This function will return a team, or not found if it does not exist.

Related to #396.
api: refactoring some team related handlers

Removing some direct database access :-)
api: added getTeam handler

Related to #396.
api: register getTeam handler

Related to #396.