Statsd middleware and controller helpers