Add support for exporting support configs

This is a first stab at adding supportconfig export.

One thing I noticed is, that the code is missing a way to signal failure of the subprocess to the UI. I'd like to try to address this in another PR.