Added classes to wrap pages, implemented PageManager.