Remove the "src" sub-directory.

If just about everything is in the "src" sub-directory, then it's not doing much! Having the RFCs in a "doc" sub-directory makes sense, but bring up everything else.
Fix linking of libcurl.
Fix compilation of the json-c bits.
Upgrade protobuf from 2.4.1 to 2.5.0.