Support for display of partial layouts, including adding pagefn for each processed page, renaming codexshowpage to codexworkpage (but making it hidden), and moving blocks out of the flow when they're gathered