NOBUG shipmate certificates
(cherry picked from commit 9f62d01)
NOBUG shipmate borders, signatures etc. used in certificates
(cherry picked from commit bcc39b5)
NOBUG adding names of shipmate certificate templates
(cherry picked from commit 816758d)
NOBUG updated the code in certificate types to use new api
(cherry picked from commit 4c6778f)
NOBUG refactored certificate template code
(cherry picked from commit e5cd9b9)
NOBUG fixed layout of certificates
(cherry picked from commit 1480d30)
NOBUG pull completion date either from SCORM or quiz module
(cherry picked from commit 4be06c4)
NOBUG fixing logic to check for existence of grades
(cherry picked from commit 03d3f74)
NOBUG changes to certificate template for new api
(cherry picked from commit 0976c4a)
Added script to regenerate saved certificates.
(cherry picked from commit f512d43)
Fixed logic to select grade and course to show on cert.
(cherry picked from commit 80eea91)
regenerate certificate files
(cherry picked from commit be16c35)
remove all the grade selection code
(cherry picked from commit 62f41ee)
Couple of fixes for errors in getting grade for certificate
(cherry picked from commit f0ccbd8)
Script to regenerate records and pdfs

from module gradebook grades
(cherry picked from commit d48f190)
edit dates in report
(cherry picked from commit 4bf18f8)
date editing only available to site admins
(cherry picked from commit d5248fe)
change to use anonymous func for expiry date
(cherry picked from commit 2afd234)
fix display of grades and dates on certificate
(cherry picked from commit 5fa5b9d)
cron script to update certificates when there is a new

grade
(cherry picked from commit 9d8a5ed)