Introduced IPageWriter
Moved BufferSize calc to IPageWriter
Moved page size to IPageWriter