Intrinsic curvature of curves and surfaces and a Gauss-Bonnet theorem in the Heisenberg group