Work on CFS response parsing

(The structure of the JSON response may change depending on what
clone1018 decides to make it)
For now I am parsing this JSON structure:

{
"directories":[
"folder",
"folder/newfolder"
],
"files":[
{"folder":"text.txt"},
{"folder/newfolder":"settings.cfg"}
]
}