generic association support, influx assocs working

Still very WIP; InfluxDB query support is unlikely to work
beyond what there are currently tests for.