Anatomy, phylogeny and palaeobiology of early archosaurs and their kin