remove leftover mod_certificate code
cutting down language file
add locallib
using html writer
using the enrolment API
replaced old missing record handling
added exception catching to API calls and fixed MUST_EXIST usage
done eliminating raw html
added certificate creation logs
typo on event log
Merge branch 'develop' into feature/activity_completion_tracking

Conflicts:
	lang/en/accredible.php
	lib.php
completion tracking (still testing)