Switched to a KV system to make changing modes easier

See: scripts/stat_collection.kv

Set "Live" to "0" for test mode, or "1" for live mode.