Migrated to influxdb instead of es
Moved influxdb config to flags
Moved all communications to channels