version 2.0

add option to Makefile to build static or shared library
use socket interface instead of libcurl
remove util.c and util.h