Major revamp to use the dmat type.

None of the algorithms changed.  The semantic level of the srf/nscf
methods and their immediate children has been elevated.  Everything
from the standard test works single-core except stress in Ni.