more work on influxdb datasource, query editor, and refactoring