Fix issue for Contao 3.2 - Database debugger tries to load class twice.
New methods registerStopFunction() and stopCollectors().
Move benchmark collector handling into config.php.
Only add a collector when the callback returned one.
Minor cleanup.
Fix some deprecated usages.