Batch Influxdb writes. Refactor code

Rather than write to Influxdb on every packet, batch series over `influxWriteInterval` (1 second) or `influxWriteLimit` (50) - whichever comes first.