Move stream methods to library. Make statsd stream buffered.