Unit tests and minor code refactoring for ServerConnection.
Merge pull request #93 from rouli/master

More precise timestamps
Merge branch 'master' of ssh.github.com:cortesi/mitmproxy

Conflicts:
	test/test_server.py
Speed up the test suite by reducing time sleeping in tests.
Rudimentary testing for client certs.
Fixed a bug in format_flow in common.py.  Changed the reference from timestamp to timestamp_start.
Merge pull request #94 from cjneasbi/master

Fixed a bug in format_flow in common.py.
Merge branch 'master' of ssh.github.com:cortesi/mitmproxy
Add tests for client certificate support.
Force flush of file content in dump

The dump file would be end up corrupted sometimes when working with mitmdump in a VM.  Adding an explicit flush seems to have resolved the file sync issues.
Merge pull request #98 from pplante/master

Explicit file flush in mitmdump
adding helper functions to make HAR export easier