manually merged pdf_templates into current master.
Merge PDF Template download for the grid from PR 227
Add templates to the deep application query instead of as a seperate statement.
PDFTemplates can now download using applicant arrays and their own array hydrator.  Cleaned up grid download to use one function now that this is working.
Speed up grid download button by preloading permissions and templates.  Elminate duplicate code by extending the tabletools base button for custom buttons.