Optionally email students on enroll/un-enroll actions by instructor

Updated tests to use CourseFactory

Update of templates for email content

Tidied up templates

fixes for pep8

final check

resolved conflicts

added changelog

tidy up