added auth header functionality
dropped auth header in favour of more general headers array
modified response parsing to utilise new headers array
Refine HTTP modifications from JoshBones.
Merge pull request #44 from treshugart/GH-42

Implement #42.