command: add new helper functions
command: add new helper functions

Add the following functions:

* DumpJSONToString
* PrintOutputWithType

Also perform some miscellaneous cleanups.

Signed-off by: Ian Vernon <ian@cilium.io>

scanf/cilium,tgraf/cilium,cilium/cilium,cilium/cilium,michi-covalent/cilium,cilium/cilium,cilium-team/cilium,tklauser/cilium,cilium/cilium,scanf/cilium,michi-covalent/cilium,scanf/cilium,scanf/cilium,tklauser/cilium,scanf/cilium,tklauser/cilium,cilium-team/cilium,tgraf/cilium,cilium/cilium,tgraf/cilium,scanf/cilium,michi-covalent/cilium,michi-covalent/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,tgraf/cilium,scanf/cilium,tgraf/cilium,tklauser/cilium