add ability to specify headers for API requests

Need to be able to add headers to API requests.

@spikebrehm