add async parameter to kafka so that posting can be configured

posting to kafka can be async or sync, adding this parameter so
that a deployment can choose to use either method to post data
to kafka. By default, it will be using asynchronized method to
post data.