Fix event states new

- Various bug fixes for mail templates ( #286, #287)
- Mail subjects now mandatory in web interface
- Implements "Add template" button