REVIEW: Add support for preparing a WebResource before serving

Allows our template rendering web-resources to return proper lengths.