WIP #16 An actual warnings class, rather than a crap load of functions

The datahandler must be finished before using it. (reverted
config/warning.php to its useful state).