Add switches to dump policy or config to standard output in JSON format.
Adjust when things are printed.
Merge pull request #226 from cdybedahl/fix-for-224

Fixes #224