cdmFromEnvironment function

Create a CDM object from a pre-defined set of environment variables