More refactoring of Settings::debugAreas handling.

debugAreas is now private, its bits can be set or checked via methods
in the Settings class.