Add Team rest service. Some refactoring moving common code to base classes