[ET/PS] set up basic env mode (dev, prod, qa), dynamic configs based off of env mode, and more refactoring