Restored vertical justification of content on page before ipd change. Restored support for spaces on pages following the ipd change. Added basic tests for borders.