Make team creation work; refactored teams_controller