kafka-1620; Make kafka api protocol implementation public; patched by Anton Karamanov; reviewed by Jun Rao