Add the main driver.

This program will read the input (json) file from the command line to pass to
json_parse() function.

All the Buf functions were copied from Go's src/cmd/dist source code.

Signed-off-by: Thiago Farina <tfarina@chromium.org>