Improve debug dialog
- Make commands configurable through a config file
- Allow running custom commands (with a config option to disallow this)
- Handle failing processes better
(cherry picked from commit d86ff68b3d51a037fc3a0e1394eca06f315d0822)
- GnuPG-Bug-ID: T7331