Initial implementation of writing XMP metadata to PDF

Lots more work/testing needed