EZP-22152: Moved template debug config to bundle

Uses a TwigBaseTemplateResolver class to set the base_template_class
twig option.
EZP-22152: Moved more debug stuff to the bundle