Continuing the process of moving output-writing functions into "writer" modules that can activated only if desired. This checkin adds a state_table_writer that writes out a csv-format table of individual units' states by day.