Removed unnecessary double 'ToDictionary'
Unrolled some inefficient LINQ
Minor optimnisation of link header creation
Merge pull request #1007 from grumpydev/ConnegPerf

Conneg perf