Lua Encoder for InfluxDB

The length operators (i.e. `#columns` and `#values`) are calculated each time they're used, so it's probably better here to use absolute values for the first several, and then increment an index counter by hand when adding the dynamic fields at the end.