more basic reader functions; small code reorganization

* move some generally useful stuff to util.py
* reset_reader.py <hostname or IP>: remove all ROSpecs to "reset" the reader

should reset_reader do a "factory" reset instead?  how do we do that?