Added  option to API calls to allow request headers to be sent with HTTP requests. Fixes #80. Fixes #97.