What is the group of the phylum Chordata that first colonized the terrestrial environment? From which habitat did they come?