C++ HTTP server code with curl-based test.

Tested on both Mac and Linux.
would be much easier to read if all global functions will be like this: ```::setsockopt()``` or ```::bind()```