Add headers option

By adding an option to set arbitrary headers, this module becomes much more flexible. This change is backwards compatible.