update ema (exponential moving average) calculation
update ema (exponential moving average) calculation

Unify flow and flow-server EMA calculation.  The correct computation of EMA:
k = 2/(n+1) or alpha = 2/(boxsize + 1)
ema = currentk + emaPrev * (1-k)

manylabs/flow,manylabs/flow