Add stathat notifications

Thanks to @jordoh for implementing this. I'm sorry it took me so long to merge. I had troubles merging with master, so I had to open a new pull request. Thanks again!