Add wai middleware support

The original reason I had for opening this PR was to enable gzip support for static assets. Imagine my surprise when everything *but* static resources is gzipped. (Check http://joelt.io, where I'm running a patched version of keter.) I'm not sure why this is. If you can share any insight that would be appreciated.