add ability to specify response headers on the HTTP API

Add an config object that allows adding HTTP header response fields to every
HTTP API response.

Closes #335