[Bug 134] Stop using "environment" concept

Mostly complete changes to drop the hardcoded environment concept that was in here.

There's room for some remembering a default, but that should be doable for the most part now with environment variables.