Code import from yesod's native-ws branch
No warnings, no conduit