A study of the origins of the world’s great religions reveals surprising ideas about God and how we define religion.