Refactor network and context APIs to separate connections from components and allow deployment/undeployment of networks, components, and connections separately.