Update – add new table ‘relay_logs’ to capture state changes sent to the relays. Update – gateway.py populate table ‘relay_logs’ whenever a state change is applied to a relay. Update – db_cleanup.php clear new table ‘relay_logs’ after a set interval. #447