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

* [ ] Make Travis happy
* [ ] LGTM from 3 Elgg owners (@Srokap, @ewinslow, THREE)

Fixes #6894
Aside: should we be using the new html5 table for this kind of thing on later php versions? Don't want to block this PR for it though.