client: pass the connection around
rfc281x: fix up some numerics
rfc281x: add some events
rfc281x: some more implementation