Reorganize and document Component event handling APIs.