dos2ux
Started deduplicating repeated code
Remove duplicated code from NSS SSL code.
Remove duplicated code from windows SSL
Further unify SSL and regular TCP socket creation
Put common code in its own file