Merge pull request #2 from 30x/fix-init-to-use-events Fix initialization to use apid events instead of a new plugin callback