This image (below) describes the default structure of TiddlyWeb's WSGI middleware. See Server Startup Model and Server Request Model for a bit more information. This illustration was taking from a blog posting on TiddlyWeb plugins.

http://burningchrome.com/~cdent/images/tiddlywebstructure.png