Update for WAI 3.0.

Based on @snoyberg's work with wai-app-file-cgi, I hope this does the right thing.