A well-tempered density functional theory of electrons in molecules