Revert "Fixes upgrade to Network.Wai 2.0"

This reverts commit 52fdd0b7d6c27a1f042e350c53528bbe2f80d659.
Requires wai below version 2.0.0 until wai is fixed