Tidy the logic for building the command used to print JSON documents.
Add and document the pager command to toggle the usepager setting.