(PDB-708) Remove rspec failure now we have returned stringify for facts

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-708) Add backwards compatible querying capability for facts

This patch fixes our queries so that the old facts end-point still returns
facts.

It uses the new schema, but is only able to display items at the top level
for now. It does this by checking a depth column we populate upon command
submission to fact_paths.

As a consequence of this change, it creates some question about backwards
compatibility. For now I'm reverting the change to unstringify the facts
at the terminus so the old behaviour is still kept end-to-end.

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-708) More changes to make new fact schema work

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-708) various testing fixes

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-708) more test fixes

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-708) more tests

Signed-off-by: Ken Barber <ken@bob.sh>
got some of the json "restructuring" stuff done, need to connect it with
data coming from the DB
Rename factset app from copy/paste problem
added v4 api endpoint for factsets
(PDB-708) various testing fixes

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-712) modify import and export for structured facts

This pull request changes the export procedure to use the new factsets endpoint,
adding support for structured facts in the process.
(PDB-550) Update puppetDB docs to include info on LibPQFactory

Prior to this commit, the docs only enabled ssl for postgresql
connections. This commit changes the docs to add a few extra lines in
the database.ini file to use host cert/key and CA cert for verification
with ssl.

This commit also shows how PDB-550 can be accomplished, since it loads
PEM files and uses SSL without the use of keystores (yay!).
(PDB-718) Fact path endpoint

This implements a "fact-paths" endpoint that returns list of fact paths/types
according to the specification here:
https://docs.google.com/a/puppetlabs.com/document/d/1vWE6tBmsPmMIYKQWV8Pwes_NIR9lEMTYjUH8zJ_AlMI/edit?pli=1