Close #31, triggering general events

Events for: onBeforeStoreDocument, onAfterStoreDocument, onBeforeStoreEmail, onAfterStoreEmail, onGetExternalDownloadLink