Expand netcode to 3-letter codes, add Blackcoin, related changes
Fix tests.
Some minor clean-up.