Add validation for Container.Env

This includes backwards compat with the older "key" field.
Merge pull request #333 from thockin/valid8

Add validation for Container.Env