Function to handle notification from openbadger that a badge claim has been issued.

Very rough functional version.
Improvements to email template selection.
Removing duplicate error logging.
Merge pull request #391 from christensenep/128-badge-issue-email

Send badge issue notification emails