Teams (No gui) + server robustesness

First teams implementation needs gui implementation and testing