add options to send custom HTTP headers
fix bugs in custom HTTP headers code, add example. fixes #131
fix WS origin
Merge branch 'master' into prefixsubscribe