Changing how the app environment is detected

This will lay the groundwork to seamlessly change environments depending
on which machine machine the code is running on.
Setting up the different environments (local, dev, and production)