Batch Influxdb writes. Refactor code
Further refactor
Add influxWriteLimit
Merge pull request #5 from porjo/porjo2

Batch Influxdb writes. Refactor code