The Scaling of the Dynamics of Glasses and Supercooled Liquids