making the PageManager thread safe and building the integration points for saving and loading chunks