[Rebased] Option to allow caching of PDFs

Rebased @jgarber's caching branch off of PDFKit master to get tests passing locally.

See his PR in #179