Changes from tools/wiki code.

Timeouts, logging, chunked_encoding.