Metric Batching Backports

A collection of backports from master allowing metrics to be batched by carbon-relay before being forwarded rather than passing them one-by-one they are received.