Fix event states new

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

Sorry :( Happened because of switched back to old revision :/