Added chain ID for Namecoin.

AuxPoW support now depends on presence of an AuxPoW chain ID, rather than being Namecoin-specific. This enables support for Dogecoin AuxPoW.