Add ability to publish environment groups, document environment groups a...

...nd clean up unit tests