(PDB-772) Modify the facts endpoint to return structured facts

This pull request causes the v4 facts endpoint to return typed and structured
facts while leaving the v3 responses stringified as before.  It also adds a
"name" column to the fact_paths table representing the first element of a
fact's path.  This column should be renamed to "fact" in the future to avoid
confusion with the many references to 'certname' as name.
Merge pull request #1031 from wkalt/ticket/master/pdb-772-change-facts

(PDB-772) Modify the facts endpoint to return structured facts
(maint) maint/master/fix facts environment ordering

this fixes an issue with ordering by environment on the facts endpoint and
patches the corresponding blind spot in our tests.
Merge pull request #1035 from wkalt/maint/master/facts-environment-paging

(maint) fix order on environments for facts
(PDB-797) Add "name" field to fact-nodes response.

This adds a "name" field to the fact-nodes response.  The field "name"
represents the name of the parent fact of the fact node and is drawn from a
new column in the fact_paths table.
Merge pull request #1036 from wkalt/ticket/master/pdb-797-fact-nodes-name-field

(PDB-797) Add "name" field to fact-nodes response.
(PDB-798) Add capability to use regexp when querying fact-nodes path types

This adds the new operator ~> which is a path regexp operator that only works
against the `path` type. It works by internally converting the array of
regular expressions into a single regular expression for querying
fact paths.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1037 from kbarber/ticket/master/pdb-798-regexp-for-fact-node-paths

(PDB-798) Add capability to use regexp when querying fact-nodes path types
(PDB-808) fix paging for factsets

This pull request enables the full range of paging options on the /factsets
endpoint.
four failures four errors