adding support to cross domain custom headers

To support this client side feature: https://github.com/LearnBoost/engine.io-client/pull/216
No effect on code that does not need this feature.