Add env var support to GoldenChild, and general refactoring.