Thrift responses don't contain headers

Since the headers contain content encoding (json vs text) it can be difficult for clients to properly deserialize responses (for example with the cat api returning text).

the rest specification allows for this but header always come back empty

Closes #17.
(cherry picked from commit d9f9e2e)