Add the code to fully simulate a WSGI server.
Make sure data is stringified.
Forgot about the .requires update.
Ensure write() also stringifies body data.
Add some tests on wsgi.py

This covers most of wsgi.py, up to TrainServer.fake_app().