The thermodynamics of stellar multiplicity: dynamical evolution of binary star populations in dense stellar environments