Fixes #28: Add support for NetSocket SSL upgrade.