Provide our own wrapper for checking the host category (ref #2511?)

xmpp.plugin['xep_0030'].has_identity appears to be unreliable at best,
so we provide our own.

Might help the case of carbons not displayed.