Added ability to pass custom headers in request. Fixes issue #47.