Convert data structure holding default headers into a Map

This is a small change I believe makes sense when considering the usage of the existing defaultHeaders list within the project. 

Converting this structure to a map reduces the need to iterate through the defaultHeaders list each time a change needs to be made or a value retrieved. 

I am looking to contribute more to this project and I am in the process of learning the code base.