sq: allow user to request JSON output for "sq inspect"
Split the logic of parsing the OpenPGP package stream and the code to produce output so they're not as intermingled.
Add the --output-format option to "sq inspect" to make output use the JSON format.
Fixes #737 (moved)
Edited by Lars Wirzenius