Buffer stats in influxdb driver before writing to the Db. 

The buffering duration is configurable via a flag and is set to 60 seconds by default.
This new flag replaces exiting flag "history_duration" since they both are inter-dependent.
The storage driver test code has been re-factored a bit to help test the new buffering
feature and will be future proof.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
We should definitely cap the number of samples to bound memory usage, but we can probably do better than what we do today.