Convexity estimates for mean curvature flow and singularities of mean convex surfaces