Restructured env config classes to be more Poco like.
Added better error handling and logging. Especially related to WebAPI errors.