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.
Nit pick:  I prefer to not have an "else" clause if you return in the "if" anyway.  Just remove the `else`.