Refactor pdf generation
Created by: slifty
This PR (1) changes the organization of the PDF generation code into a PdfGenerator object and (2) updates the index.js
pathway to actually use all of the new code.
We also start to use pdf-lib
which should be able to replace a few of the various pdf libraries we've added in.