fix(notifications): Better threading + resolve html entities decoding issue

* [x] Make Travis happy
* [ ] LGTM from 3 Elgg owners (@Srokap, @ewinslow, THREE)

Fixes #6894
`@param string $hook` et.al. Also I'm not sure why code sniffer didn't bug you about spacing and lack of variable description...