curl share interface and curl version implemented. Various improvements.