Implemented EnvironmentResource, EnvironmentDomainResource,
EnvironmentProblemResource and related tests. Implemented Environment
model (both XML and JSON) and corrected some older tests.