Handle HTTP headers internally

Closes #19.
Merge pull request #20 from VividCortex/issues/19-http-headers

Handle HTTP headers internally