Allow listeners to replace the dispatching event.
Remove EventManager.dispatchAll.
Add priority to event registration.
Add tests for recent EventManager changes.
Add documentation.
Refactor EventManager priority handling.