add JSGI middleware

this gives us a threadlocal configuration store:

    app.configure('gestalt/middleware');
    app.gestalt.load(... your config...);
    // anywhere in the application:
    Application().gestalt.get('foo')