Move the content of src to the top level.
Fix references to "src" in various README files.
Fix linking of libcurl.
Fix compilation of the json-c bits.