restructure: rename read_cfg to read_qsc.  move detectors to their own file.  Add detector manager class for IO.