more refactoring of http types and reworked negotiation functions (bit neater now). some new lenses on the way to removing generic types of headers.