Connection upgrade support in uwsgi and scgi modules.

Prodded by Roberto De Ioris.