Emailer (#568): Strip HTML from emails if set to text

Partially addresses #568, performing basic conversion of HTML to plain
text if the mailtype setting is not 'html'. The CI library should
already be configured to send plain text via the initialize method in
queue_email()/send_email()