merged unit test from RC_1_0

git-svn-id: http://libtorrent.googlecode.com/svn@10305 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
merged trunk

git-svn-id: http://libtorrent.googlecode.com/svn@10306 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
disable half_open settings when deprecated functions are disabled

git-svn-id: http://libtorrent.googlecode.com/svn@10307 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
optimize peer classes a bit

git-svn-id: http://libtorrent.googlecode.com/svn@10308 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
remove duplicate assert and remove outdated logging

git-svn-id: http://libtorrent.googlecode.com/svn@10309 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda