Orbital magnetism in the density functional theory of superconductors