This adds previews for downloaded pdfs and code files.  