Namecoin testnet beta

I would like to create a new branch on namecoin/libcoin. The branch would be namecoin-testnet-beta, the beta part is to indicate that it still uses some hacks to let it sync.
Good catch!  If you submit a pull request to upstream for the other changes not related to testnet, include this. :)