Curve complexes, surfaces and 3-manifolds