Added jid->hash lookup for capabilities