update stats_server.py with new struct
post momentary data to InfluxDB
periodic update of statistics
print periodic stats on console
send periodic stats to influx.db