. . . "The principles of priority are not statutory, but have been developed by the courts, mostly in cases relating to the allocation of water and coastal space." .