Event: wrap backend context on a 'loop_t' data type

Signed-off-by: Eduardo Silva <eduardo@monkey.io>