add another config option to generate the right schema
implement ApiSeries interface

This interface is defined in influxdb and is used by the code that
converts between internal series representation and the http api
representation. This is needed because the engine test suite was written
using the internal representation.