O(1) torrent speed monitor

Do not sum over 30 samples for every average() request. Instead track a sum of all samples, and just divide this sum on number of sample on average() request.