clean up, implement signal_connected and signal_ready with pubnub clnent
fix error when no secret exists