proxyquery: factor source header processing
proxyquery: factor source header processing

This block is now in a separate function, in order to reduce the overall
size and complexity of `post_job`.

zerovm/zerocloud,zerovm/zerocloud,zerovm/zerocloud