issue #2087: Adding Event::setUserData and Event::getUserData, making some methods inline.
issue #2087: Updating the constructor of XXXEvent.
Merge pull request #3693 from dumganhar/iss2087-new-event-dispatcher

issue #2087: Adding Event::setUserData and Event::getUserData, making some methods inline.