Allow user to change network magic, add constant for testnet

We need to add a "difficulty back to 1 after 20 minutes" difficulty
rule to actually support testnet, but this is a start.