(PDB-822) Change acceptance tests to incorporate structured facts.

This patch augments our basic_fact_retrieval and import_export acceptance tests
to include structured facts, and also bumps the version of the nodes query in
the facts/find indirector so structured facts are returned when puppet facts
find is issued to the PDB terminus.
Merge pull request #1050 from wkalt/ticket/master/pdb-822-structured-acceptance

(PDB-822) Change acceptance tests to incorporate structured facts.
(PDB-809) Store top level structured fact data as JSON

This adds the storage of the top level facts that happen to be structured in a
new column of fact_values called `value_json`. This is provided so we can query
top level facts for the /facts endpoint in a performant way, without having
to also reassemble the pieces of values into a JSON object later on.

This patch also removes some dead code from the facts endpoint code, and moves
the generalised reassembly code that was shared between facts and factsets into
a factsets specific area. Since now, this is the only endpoint that needs this
code.

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-809) Use json stored branch for factsets also

This patch fixes it so factsets can also benefit from the depth 0 json storage.

Signed-off-by: Ken Barber <ken@bob.sh>