Case improve

1. Test cookie APIs with local server.
2. APIs work, but the case  does not work fine, without flow control lib such as [async](https://github.com/caolan/async), if we want to do something linearly, we should write the code in the callback function, otherwise the result is not certain.
3. Append a local server listening on port 8125.