Adding run-mode permission checking functionality
Merge branch 'master' of https://github.com/CAEngineYard/EnvVarsTest