changed header function to allow addition of custom headers

When adding a custom header the **header** function throws a **KeyError**.  Changed it to use the dict.get function and return None when the header is not already in the response.