Email notifier code improvements

The email notifier was already using email templates for various types of email notifications but these templates had redundancies and the subject field was not generated from a txt chameleon template.

Now, the following improvements has been done:
- NotificationTemplate class is a common superclass for all our current- and future email templates.
- ReplyTemplate, and CustomSearchTemplate classes are inherited from the NotificationTemplate, thus becoming shorter
- The subject fields are also txt templates (before that they were generated from the code)
- Import ordering has been fixes for style