Make writing env to disk configurable.

We have strict security requirements that prevent us from writing clear text passwords to disk. Unfortunately the DEA does this when it write the environment out to logs/env.log. We would like to make the persisting of  the environment configurable so that we can disable it.