Thermodynamics and Related Kinetics of Staging in Intercalation Compounds