agent: statsd support. Fixes #247