Quasi-Kähler groups, 3-manifold groups, and formality