Small workaround to make mitmproxy work again.

Further work is required to make scripts work again, though.
remove code duplication in ProxyHandler by unifying read_transparent and read_reverse
Merge remote-tracking branch 'origin/master'
refactor ProxyHandler, remove duplicate code
add comments
ensure binary read on windows
Bump version
Merge branch 'master' of ssh.github.com:cortesi/mitmproxy
add documentation on how to use custom certificates
Merge remote-tracking branch 'origin/master'
Added small note of file format
Merge pull request #190 from BillinghamJ/patch-1

Added small note of file format
store resolved ip addresses, fixes #187
ignore missing CN in certificates. fixes #169
change certificate path for android, fix #171
add content-length 0 if we remove header for chunked encoding, fixes #186
serverconnect hook: Set sc.request

The serverconnect hook script might need to examine the incoming request
in order to set up the server connection.

Example use: bind to a distinct source IPv6 address for each client.
handle a hook changing connection parameters
Reconnect if the server-connect hook needs the request to decide what to do
Merge pull request #189 from mitmproxy/refactor_proxyhandler

Refactor ProxyHandler