Updated all examples to remove onEvent handlers and to include the Event class.

Signed-off-by: Grant Skinner <info@gskinner.com>