Structured settings b

This is a clean up and re-submission of my former structured settings pull request.  It includes all patches to settings.py current as of this date (21 Sept)