Issue #280: Put most settings.php settings into  array for overriding.
Merge with 1.x.
Merge pull request #378 from quicksketch/280/settings

Issue #280: Put most settings.php settings into  array for overriding.