monitor onupdate event
save state.json on every update
added programLastTime
save uptimeTotal and downtimeTotal
send uptimeTotal and downtimeTotal to clients
floor uptimeTotal and downtimeTotal
fixed downtime adding after short program starts