By studying the genome of a kind of octopus not known for its friendliness toward its peers, then testing its behavioral reaction to a popular mood-altering drug called MDMA or “ecstasy,” scientists say they have found preliminary evidence of an evolutionary link between the social behaviors of the sea creature and humans, species separated by 500 million years on the evolutionary tree.