Make CClose exception work in python 2.4.

Fixes https://github.com/kanaka/websockify/issues/41
Fix return code when client closes.
Release version 0.1.0
Feature: target_host is wrapped in SSL using --ssl-target option
Adding support for proxying from a unix socket
Adding TCP_NODELAY to the source sockets
Merge pull request #45 from d4nshields/master

feature from issue #8: Support connecting to SSL/TLS target socket
Move SSL target support into websocket.py.

This is cleanup related to:
https://github.com/kanaka/websockify/pull/45
Merge with kanaka's mainstream master branch
Merge pull request #46 from cloud9ers/master

Adding support for unix sockets as target socket.
Fixup bugs from merge (pull #46).

- Rename unix socket option to '--unix-target' to be consistent with
  '--ssl-target' which is an analogous switch.
- Fix normal socket target mode which was broken after merge.
- Normalize/fix output for SSL, unix socket and wrap command modes.
Fix wrap mode when used with --web option.

- The --web option changes directory so the wrap mode needs to get an
  absolute path to the rebinder.
- Also, use long instead of int in rebind.c so avoid compile warnings.
doc/websockify.1: add man page for websockify command.

Mostly it is based on the project README.md but with some tweaks and
extra content removed.

Thanks for Adam Young <ayoung@redhat.com> for the original version of
this.

Also a decent man format reference is here:
http://www.fnal.gov/docs/products/ups/ReferenceManual/html/manpages.html
Support IPv6 brackets notation

Parse square brackets-enclosed IPv6 for 'source_addr' and 'target_addr'
parameters.
Allow preference of IPv6 for source_addr

Add the option "-6, --prefer-ipv6". When set, the 'prefer_ipv6' flag in
websocket.py is used so that 'source_addr' is resolved to IPv6 if
available. If 'source_addr' is not set, binds to [::].
Merge pull request #49 from libricoleur/master

Better support of IPv6
Enable multiple targets in websockify by passing a target-list configuration file.

The --target-list option is used to pass a configuration file on websockify start.

This file contains entries in the form host:port:token, one per line.

When a new connection is open (from noVNC for example), the url should look like:

ws://websockify_host:websockify_port/?token=ABCD

The token is then extracted and checked against the entries in the configuration file.

When the token matches, the connection is proxied to the host:port indicated in the file.

If the configuration file is a folder, then all the entries from files in it are read.
Move target-list processing to websockify.

websocket.py has no concept of target/proxy so any target processing
should happen in websockify itself.

Also:

- remove URL parsing imports from websocket.py since they are not
  needed with SimpleHTTPRequestHandler doing the parsing.

- read the absolute path of the target_list file on startup since the
  --web option will change directories if set.
websockify: change cfg file syntax and clean up parsing.

Config file syntax is now like this:

----------------------
    # Comments and blank lines are allow
    token1: host1:port1

    token2: host2:port2
----------------------
websocket.py: split out handshake parsing.

This makes it easier to use the websocket code in a WSGI script in the
future.