Define dictionary defaults for events. Clean up createEvent(). Note issues with WebKit.

Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=21078