add HostConnector.new and minor refactors in NodeResource for it