static-handler: refactor to use write_handler_response

This fixes sending out the weak ETag, and simplifies things
somewhat for this code path.

Fixes https://github.com/pagespeed/ngx_pagespeed/issues/434