Metric measure spaces satisfying curvature-dimension bounds: geometric and analytical properties