Add named id to all chapters, sections, and appendices so they are easier to link to.

I have been running @NixOsTips and linking to various parts of the manual. However automaticic id generation can change so I went over all the items and attached more properly named ids like chap- sec- appx- and so on.
Please don't change existing IDs, as that breaks existing hyperlinks to specific sections.