merged unit test from RC_1_0

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code@10305 a83610d8-ad2a-0410-a6ab-fc0612d85776
merged trunk

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code@10306 a83610d8-ad2a-0410-a6ab-fc0612d85776
disable half_open settings when deprecated functions are disabled

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code@10307 a83610d8-ad2a-0410-a6ab-fc0612d85776
optimize peer classes a bit

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code@10308 a83610d8-ad2a-0410-a6ab-fc0612d85776