Added EnvironmentConfig.

Introduced EventsPublisher into Environment.