Optionally pass in 'html' template function to Accounts email templates
Tests for the html option to email templates
history note for #1785
Merge branch 'pr/1785' into devel