Fix #284 - pad template so we get accurate linenos in tracebacks

negotiated_resource was referencing page.content instead of
page.padded_content.  Fixing that exposed that most of our
tests were incorrectly not pre-padding templates, so they've
been fixed as well.