Added functionality to allow an entity to discover which rooms a jid is present in