merged changes from libtorrent_aio

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio_settings@6869 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
create an abstract interface for session_impl, called session_interface

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio_settings@6870 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
make hash_complete also circumvent fences, to prevent dead-locks

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6871 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fixed race condition in thread pool

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6873 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix race condition in create_torrent

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6875 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
minor disk_io optimization and debug logging

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6876 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
speed up web seed unit test

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6878 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
aiocb_pool asserts

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6879 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
merged changes from libtorrent_aio

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio_settings@6880 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
landed settings revamp branch into libtorrent_aio

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6881 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
added missing file

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6882 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fixed ssl build

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6883 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
remove redundant constructor for peer_connection and bt_peer_connection

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6884 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fixed time critical piece accounting in the request queue

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

git-svn-id: http://libtorrent.googlecode.com/svn/branches/libtorrent_aio@6887 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
SIOCGIFCONF fix

git-svn-id: http://libtorrent.googlecode.com/svn/trunk@6888 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
add aserts to make_time_critical()

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

git-svn-id: http://libtorrent.googlecode.com/svn/trunk@6891 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix freebsd build

git-svn-id: http://libtorrent.googlecode.com/svn/trunk@6892 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
support SIOCGIFCONF returning more interfaces than there's space in the supplied buffer

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