For 2v2:
For 2v2, check out these
For 3v3, there are existing articles out there:
I guess that once you're good at the above the 4v4 doesn't differ much, I wouldn't suggest playing it either as you will need to find more people and will have to wait longer. It isn't competitive either, as Tzenes has pointed out earlier in one of his answers. The maps aren't made for it which can make the choice of races unbalanced...
unit synergy of different races
I would suggest every race to create his own composition of units, why?
If you create only one type of units instead and your friend the others,
you will depend much more heavy on one resource. (Example: Marines would be minerals only)
When controlling your army, if you are alone it's much more easier to command your different types of units so they don't accidently die. Then you avoid sending in vikings over a group of enemy marines... If you were separated, you would have to share such thoughts with your friends and then his vikings might arrive to early or too late.
When talking about different races, you can ask and plan what units to create to accompany your friends' army. If he's planning an air assault, you could create some ground units just to distract the opponent away from the air as you both attack...
is there some kind of roles in good teams?
This could be done, but can be risky depending on how you do it...
For example, if you have a player that's only harvesting, his defense/army would probably be weaker and thus you will need to defend his base to counter that. But by doing that, you weaken your own base and have less units where you actually would want them...
So, for that role for example, don't just point one out as the harvester but also plan for his harvesting to not fail as you will be dependent on it. Think of his base as one of your expansions. This is probably an early-game problem to think about, maybe he initially should create an army to defend against people rushing him...