Add support for custom handshake headers.
Set status and headers on error, not just on open.
Woops, left a console.log in.