Add environments type

* add start of global environment handling
Merge pull request #4 from rpedde/environments

Add environments type