Issue #3832: backport 677a9326b4d4 to 2.7 (and delete some obsolete code).
Update 2.7 idlelib.configHandler and reduce differences from 3.4 code.