pubnub_done(): Call cb->done() after curl is finished removing its handles

Right now, our libevent backend would trigger a sequence of invalid memory accesses.
pubnub_done(): Add a documentation note about calls in progress
pubnub_done(): Free data of internal callbacks of ongoing API calls
pubnub_subscribe_http_cb(): Fix memory leak in case of channelset format error