Server: worker loop handle events

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