Make rest-wai work with new version of wai.