Proxy: connections and event handling

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