Merge pull request #3 from dair-targ/master

Custom IOLoop instance support
Added the ability to pass along additional HTTP headers - for example to pass along cookies or authentication headers.
If the remote end doesn't support websockets (or there is a proxy of some kind between you and them), call the on_unsupported() callback to indicate that.
fix line endings