Export the function IsValidEnvironment.
Better environment id checking.
Merge pull request #19 from tasdomas/export-is-valid-environment

Export the function IsValidEnvironment.