Allow alternative dict-like objects to be used in parse_dict_header

RFC 3507 (ICAP) Section 4.4.1 states that the Encapsulated header values must be ordered monotonically; something the current implementation doesn't guarantee.

This patch allows the use of an OrderedDict, or any other such dictionary, to provide that functionality.