Lots of debugging tweaks
Added in a local environment config parser.
Added some logging to the environment loader.