XMPP code commonization (for PGP & non-PGP plugins)