Events: replace events macros to new ones set on Monkey core

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Log: use new Monkey events loop API

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
WebSocket: replace event loop with new Monkey API

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Event: do not validate flags based on value

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