Add signals to enable mail filtering plugins

This patch adds support for several signals which can allow plugins to interact with the mail processing engine. 

*Specifically, mail filtering to detect auto-replies is added as the first mockup example.*