Adding initial global configuratin classes to clean up config. Adding a few exceptions for bad config and a little code cleanup on the s3.py.