Allowing ioloop to be passed to the WebSocket constructor, making setup.py just use the module instead of requiring a single-file directory.
Making cookie constructor a more flexible header approach.
Merge pull request #1 from joshmarshall/master

Simplifying namespace, allowing custom headers (instead of just cookie), and allowing passing ioloop to reduce reliance on singleton.