added initial json support with rapidjson.

Imported rapidjson header lib. Writing entities to json.