[MRG] Weighted metrics

This PR is part of the larger #1574 and adds support for sample weights in the metrics.