d3.weightedMean

Saw #1605 request, which I have used many times in the past. Also added some tests (blatantly using mean-test.js as a sketch).