Carbonate Sedimentation and Diagenesis in the Evolving Precambrian World