[MRG+1] sample_weight support in metrics

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