Trim whitespace from beginning and end of output

This makes sure that accidental blank lines in templates dont mess up the markup. E.g. if you don't immediately begin your template with the usual `<?php snippet('header') ?>` you would end up having blank spaces in your HTML output.