manually merged pdf_templates into current master.

retested that the downloads are still working. i noticed you made changes in Grid.class.js to control button display with permissions; i merged your methods too, but you will need to edit the place where they are actually configured as i left my button config in there so i could test. also the download now comes from a single button/dialog but i left the old download_applicants plugin in there in case you needed it.