smooth data before calculating rates

Calculate a moving average of 5 samples centered around each point when
calculating rate (and adjusting the down-server filter to again filter
out any point where the new rate calculation for the uptime state would
be negative, to avoid large negative spikes where there are server
restarts)