Unit tests and minor code refactoring for ServerConnection.
Merge branch 'master' of ssh.github.com:cortesi/mitmproxy

Conflicts:
	test/test_server.py