DENSITY FUNCTIONAL THEORY FOR JAHN-TELLER SYSTEMS