A unified kinetic and thermodynamic model of the glass transition