Allow overriding the global network parameters in addresses

Some applications may want to deal with different network parameters within the same application. The use of global network parameters makes this hard.

I added a `network` parameter in every method that needs networks parameters, with a default that falls back on the global setting.