Added jabber_compare_jid to fix JID comparison case sensitivity

Patch by @GRMrGecko.  Not PRing from his branch because I broke things.

Looks good to me, i think it already got wilmer approval too. He even wrote test cases.