Add secure method for tcpsocket

Add secure method for tcpsocket.  This will not work until issues with the .secure API are resolved, but won't harm any existing users.