Except as hereinbefore specially provided, the city or town council in incorporated cities and towns, and the judge of the superior court, as trustee, in cases of unincorporated government townsites, are hereby expressly given power and jurisdiction to hear and determine all questions arising under this chapter and under said acts of congress and the right to ascertain who were the occupants of lots in such government townsites at the time of the entry thereof in the United States land office, and to determine from sworn testimony who are and who are not entitled to deeds of conveyance to specific lots in such government townsite, subject to review by courts of competent jurisdiction.