Add possibility to merge config to InstanceConfigTrait

Also updated the network namespace to use the config trait.

Should the config trait return $this on write? would probably make for easier usage - the http client did that previously, though it was the only class to do so.