Magnetic Fields and Density Functional Theory