separated pageview related code into pageview.js

PageType, Pages, Page, PageViewer, PageView