Kafka Entity for 0.5.x

Copy of #615