Remove an unnecessary copy of Json::Value output.

* New free function Json::to_string() hides JsonWriter.
* JsonWriter now uses rvalue semantics to save a copy.