Allow arbitrary headers in input/output components

See https://github.com/rayo/xmpp/pull/96 and https://github.com/rayo/xmpp/commit/4c8dbe3511eb3cd1210dc54b41136d8fc579b565

Fixes #232. Fixes #233