(PDB-565) Structured fact storage

This pull request enables storage of trusted facts when the trusted_node_data
flag in puppet.conf is set to true.