lib: Rename "pages" to "chapters" in the doc API
Pages were actually scrollable pages before the widget added pagination support. I think it best to rename the document API entry points to use "chapters" as this will make it clear that "widget pages" and "document pages" are different things.