do not ignore cookie max-age
do not ignore cookie path
fix rejecting cookies that does not match request host
binary safe read of header fields values
fix compilation warnings