Update conig paths and support environments

The code modifies the configuation paths to live in the basedir.  Also
here is a new option that allows the user to specify the environment to
deploy, as well as an option to specify if the deploy should be deep or
not.