Special processing for devices that use hasNetworkParent

This patch alters the behavior of the AgentConfigBuilder to follow hasNetworkParent when available, instead of hasDevice.  Tests included.  SMOKE tests pass.