Removed all onEvent handlers from src.

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