Resolve #86. Add external event API for diagnostics and usage in modules.
Merge pull request #88 from pragmadash/feature/#86-events-api

Add external event API for diagnostics and usage in modules