issue #2389: Adding cookie support for HttpClient

Refers to https://github.com/cocos2d/cocos2d-x/pull/2580