implemented Modules.Events.dispatchEvent, Modules.Events.dispatchDocumentEvent (experimental, without tests completed)