Change testnet network flag from bool to string.

In order to better support the command line interface we're changing the `use_testnet` boolean flag into a `network` string flag which can be either `'btc'` or `'testnet'`. This also makes it easier to extend the interface for eventual altcoins in the future.