Added chromepageschanged event

Pagechanged event still give incorrect documentIndex and pageIndex. So
we call ChromePagesChanged when everything's done
Expose setCurrentDocumentIndex and setCurrentPageIndex

Expose functions to set current page index and current document index
ignore project file