add some networking code + jsoncpp dep and json code