Create event method

Exposes createEvent method
Adds mocha tests