HPCC-11713 Convert some connects to children of environment

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-11713 Final set of environment changes

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>