Revert to older way of passing vars to partials

Currently, render() assigns variables to $this. After continued use, that ends up being somewhat messy. This PR goes back to the older way of extract()ing variables into the partial template scope, and includes notes on how to make that work with closure-based templates.