Fix WSGIApplication returning str as iterable

	Each character of such an iterable is sent separately, i.e.
	wrapped in separate FastCGI record
Refactor ConnectionHandler record handling

	Create map of "record type" to "record handler" callable and use
	it for dispatching