Researchers are starting to understand the biological rhythms that sync worms and corals to phases of the moon