Style changes & move CONNECT handling up into existing 'if onHeadersComplete' clause.
Add test for server-side CONNECT behavior.