fix loadmore themes by using uncached count of themelocks (bug 858110)
edit/view Listing links on queue detail pages (bug 855848)
don't show flagged queue link on queue detail
simplify sidebar class logic