write_riemann plugin: Implement communication over TCP.