XCOMMONS-483: Add the notion of Fold Event.

* Add BeginFoldEvent.
* Add EndFoldEvent.