agnosticbin: improve event sending functions
agnosticbin: improve event sending functions

Change-Id: I0be865d35d01b1bcd01ff50a6f2efeb0d04b9fab

shelsonjava/kms-elements,Kurento/kms-elements,TribeMedia/kms-elements,TribeMedia/kms-elements,Kurento/kms-elements,TribeMedia/kms-elements,shelsonjava/kms-elements,Kurento/kms-elements,shelsonjava/kms-elements