Udp support for  2.x-maintenance

More: #9 
I think this extra `flush()` is unnecessary. `JsonGenerator` flushes the underlying `OutputStream`: http://jackson.codehaus.org/1.4.2/javadoc/org/codehaus/jackson/JsonGenerator.html#flush()