Comment moderation js

Adds JS code for sorting, filtering, and pagination of comments for comment moderation.

UI tests are coming in a later PR.
Matching text values and using ``.prev`` are very susceptible to breakage when styling changes. If you are not going to use attribute-based matching, make sure you write some JS tests that will break if elements move around the page.