(PDB-712) (WIP) Adapt PDB import/export to structured facts.

This pull request accomodates structured/typed facts in the PuppetDB
import/export routine.