Add ForwardingPluginConsole
Refactor debug output, improve debug APIs and services