Add support for setting custom headers. Close #7. Fix #8