Supersymmetric vortices, 3d BPS states, and 3-manifolds