Move from trollop to cri

This code reimplements the configuration handling, replacing trollop
with cri.  This now has more managable implementation of command line
sub arguments, and code layout.