move debug page to jinja2 templating and dumper refactor