Completely untested code getting rid of most legacy negtypes
Get rid of DH where possible too
Get rid of DSA support in noderefs; NEEDS TESTING
Remove superfluous casts (compiler warnings)
Remove DSAgroup indexing and get rid of the DSA lines in the ref