Fix #2902: Externalize debug menu as an extension

This request fixes #2902 by moving the `DebugCommandHandlers`, `NodeDebugUtils` and all the Debug menu creation to a new `DebugCommands` extension.