Removes an unused debug var.
Tidies up setup.dm, moves a bunch of vars to global.dm, changes the case of a couple.
Removed unused log var (diaryofmeanpeople).
Moved several globals into the config controller, updated eample config appropriately.
Merge pull request #7531 from Zuhayr/configcleanup

Setup.dm and global.dm cleanup, config changes.