HPCC-11713 Convert most connections to /Environment

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