now the api proc can accept a json blob and file name and will write the file to disk for the node script to utilize
objectToJson is a tableFunction that accepts a table of objectIds and a field list and returns a json string for the api
added the proper siteCode
simple table function takes an object typ and yields a list of ids that are stale, based on apiUpdated datetime