(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.