Improve example scripts

Pick event name and granularities from command line arguments
TimeSeries now accepts a Redis key prefix

Granularities are also overridable on instanciation