Implement the "messageevent" argument to Document#createEvent. #4008

This is a fix for issue #4008.