Notifications: checking teplate syntax when create and set time limit for pool messages

- the NotifTemplateMessage syntax is checked before storing in DB when
  creating or updating