The courts are all vested with power to appoint receivers for the safekeeping, collection, management, and disposition of property in litigation in such court, whenever necessary to the ends of substantial justice, in like manner as receivers are appointed by courts of chancery.