Added endpoint to update or insert template

- Template loader still isn't grabbing templates from the DB

[#80341146]
Slight refactor of passed in variables for template
Added ability to get email template
[#80341132]
Added pending acceptance test grabbing templates from DB