Refined the sendEvents api interface.
Implemented the methods to completely create the event object at the jni level.

There seems to be some problem with the timestamp. Will have to check that.