TODO: This document is a stub. Describe general principles, types of events, hook APIs, use-cases for development and debugging.