removes global requires in Rjson
adds root path for KeyValueStore & improves buffer compaction
turns into single-file output lib