A working version of MovingAverage

As the lass comment says, this is meant to provide utility like uptime
where it gives the average of some statistic over different periods of
time. This allows you to see how actions you take now affect the
statistic, while still giving you a long view of things.