Jahn-Teller dynamics and properties of the manganites