TS-3155

Adding value_get_index to test for presence of value in MIME header field.
Using it in the keep alive checks.  There are other places in the code
where this change can be used to avoid full value copy and parsing.