Reimplemented CaseInsensitiveDict.

Requests tests pass, still need to complete tests for
CaseInsensitiveDict.