Added env.js to handle environment variables and settings; session changes