accept chat messages sent through a gateway

As long as we can find an account or a member record with a gateway_jid
equal to the sender jid of the message we received, we'll accept the
message.