Sub-Riemannian heat kernels on model spaces and curvature-dimension inequalities on contact manifolds