Allow custom protocols/headers

This allows setting custom headers, such as Origin, which some servers require.
Merge pull request #1 from beatgammit/patch-1

Allow custom protocols/headers