d3.weightedMean

Saw the request for this feature, which I have used many times in the past, and decided to do a PR. Also added some tests (blatantly using mean-test.js as a sketch).