Convert pages to shtml, splitting out header and footer