C-style callbacks. Note that this requires the memory callbacks to have a userdata pointer (so that we can pass the class instance). Also, the Context class has to be passed into the constructors for Connection and Stanza.
C calls.