introduce context->event_ops

Signed-off-by: Alejandro Mery <amery@geeks.cl>