Add ewma stream

This adds an exponential weighted moving average stream that takes into
account the time between events. It takes a halflife in seconds.