Merges from Namecoin

Merge some straight-forward patches from Namecoin.  (phelix' warning flags change and ryan's change to getblock JSON output.)