[TASK] Convert Environment class to an injectable object.
This is step one in unwinding the Environment class. It moves to an object stored in a static variable, and everything is built off of that. I included one example of how the new-style will be used. Converting the zillion other uses will be follow-up issues. The static methods should also get marked deprecated to point people toward the object properties. Resolves: #94995 Releases: master Change-Id: I620d8e690e9adc03a7dae4b0b83541be9bcd788b