Fixed various issues with Wsgi handlers.
Added clear() to WsgiApplication.