Added ability to use threading or forking in wsgi.server.
Fixed some issues when closing sockets.
Fixed issue when populating PATH_INFO in environment.