added creating an alert group for every flag created and cross reference site protection
fixed template inheritance
added mailing when message flaged arives