Switch to json model for "load" and "save" functionalities.

We use jansson library to save and load the data in json format, which is way
more flexible then the previous approach.

Committing with some debug code. Will remove later.

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