native-fetcher: keepalive support

Work in progress (needs testing to ensure all is correct).

Based on https://github.com/pagespeed/ngx_pagespeed/pull/781,
but with Jeff's comments adressed