Implement a DeepCopy() method for rapidjson::Document

DeepCopy and Install patches.