Kate DiCamillo’s Flora and Ulysses, the story of a young girl’s friendship with a magic squirrel, and Brian Floca’s Locomotive, about the beginnings of the transcontinental railroad, have won this year’s John Newbery and Randolph Caldecott Medals, America’s highest honors for children’s literature.