Add AJAX handlers to mark posts and replies as known.