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 environments. This comes in handy in setups where
a strict separation between environments is desired.