Rate

Adds a "rate" function to series, histogram, count and set types. 
Introduces a breaking change to custom transforms by adding a second parameter to define the amount of time over which the data was collected.
Adds documentation on how to write transforms.
Fixes gregorian TTL calculations again [#42][#44]