Remove use of RapidJSON from public API
Created by: shindo
This removes all functions/methods from public API that use RapidJSON.
The next step could be to hide RapidJSON-related symbols with
__attribute__ ((visibility ("hidden")))
to make these symbols local to the library.
Finally, we could replace librapidjson1
build dependency with a submodule.