Add network choice in clients through optional argument.

Added into CLI and Main the option to change the network for easier testing.

I guess CLI could need more patching up (for example, checking server name, and using the port from PayFileClient), but I've left that out for now. As I'm not sure to what extent development needs to be done on the command-line client.