[ticket/12943] Add core.phpbb_generate_debug_output core event

Add core.phpbb_generate_debug_output core event to allow extensions
outputting additional debug info.

PHPBB3-12943