Made wp_upload_dir available to dompdf

Created a new class (sdpg_wp_constants) to make the plugins uploads
directory available to dompdf and made dompdf write its tmp files to
that directory instead.
Changed $wp_uploads_path[basedir] to ['basedir']
Default values now populates the fields if required