Added code to deal with truncated messages.
write now accepts optional check_reset.
Merge pull request #7 from jirafe/fix-kafka-handle-truncated-messages

Fix kafka handle truncated messages