If—contrary to modern dualism—mind and matter actually form an integrated whole, we can better understand how religions work, and also how they go awry.