A hundred years after Freud, one man may have figured out why we dream. You’ll never think the same way about nightmares again.