Only fetch and do computations on data sets that we are displaying
Move changes in previous commit to their own function
Use averaging to send no more than MAX_QUERY_RESULTS number of data points to the browser
Suppress logging
Generalize averaging to send back all data fields requested
Port to forEach() loops which are more efficient generally
Appease linter by adding radices, etc
Merge branch 'master' of github.com:captainkirkby/Gears