Updating documentation for events.

Deprecating the onXXX config callbacks.