some refactoring, simplification of pubnub_light client api