Add BytesWritten() method to WriterProxy.

This makes it possible to show content length when writing the access log.

This works for me, and matches the value reported to the browser in the Content-Length: header.