Make the number of comments shown by default (before expanding) customizable

Sorry for the large diff, it's because of EOL changes.