Scientists have taken a closer look at chocolate and the tree it comes from, and have traced back the origins of the plant.