Jr permalinks

Discussion permalinks now behave correctly for both sort orders, and for comment replies.