set stanza type to 'error' on gateway errors
distribute MEMBER record with gateway_jid on registration