Factor out new 'P' module with promise-related helper code.

Change-Id: Ifebaa58a0c3f7b074f3a3571500356107edd2067
Convert SVGs to PDFs with inkscape, and include them in the output.

Change-Id: I65ae61246293b46afbdd8a0dcb40b15a13819f86