In his first play, 'Imaginary Comforts,' the man behind Lemony Snicket confronts dread with his usual wicked wit.