Perform series summarizing internally

This change implements internal series summary (min, max, avg, last,
percentiles) computation instead of relying on the connectors' backend
functions.