pubnub_light: use ssl module instead of old socket.ssl, some refactoring, some renaming and semantic changes of the API