add frames around parts of pages for debugging.
(this has revealed problems with the end-of-page footnotes.
Generally tweaked the way the page dimensions are being calculated,
to hopefully be a bit saner.
(the frames will be disabled once we figure out why the end-of-page
foot notes are being allowed to extend beyond the end of the text block.

Issue #56
push whitespace back to correct side of text block.