Ab Initio Atomistic Thermodynamics for Surfaces: A Primer