Test WSGI app calling.

- Factor out test servers into a separate file
- Adjust docs to note new Flask dependency