Moved the setting of the SUBREPORT_DIR to the values object because that is where other values like template are set.
Added configuration options for the metadata that goes into the PDF as well as other PDF parameters