Fix docs to use event model for page changes

Updated the code and doc to use event instead of callback onPageChange
First commit, be gentle :-)

I moved this commit from https://github.com/openseadragon/openseadragon.github.com/pull/9
Syntax and suggested updates
Merge pull request #55 from macarthy/patch-1

Fix docs to use event model for page changes