Work around a farking gerrit quirk and add a pager

- Adds support for using a paging output (via pydoc.pager) if terminal
  is to small.
- Fixes a farking gerrit quirk where querys with a commit require
  something other than a int to be present. i.e. query on 1234f works
  but not 12345.