Pass agent environment to ENC

This patch passes the environment sent by the agent as a second argument
to the ENC. This will allow the ENC to operate solely on one environment
without affecting other environment. This comes in handy in setups where
a strict separation between environment is desired.