CarbonOutput: implemented UDP and persistent TCP connection support