Ensure that '.util.chunks()' closes stream after exhausting it.

Suppresses resource warning in Py3k.
Add 'before_render' hook for propertysheets.

Allow them to mutate the form before rendering it.