Configurational Entropy Approach to the Kinetics of Glasses