fixes #1433 and closes #1439 - night mode now has a failsafe (there will be one "bad" pageload for those with it still stuck on) as well as a new onToggle function that will get called in modules, if it exists, when a module is toggled on / off.