AJAX refresh improvements

More reliable highlighting of new posts, especially when adding AJAX
updates