merged changes from RC_1_0

git-svn-id: http://libtorrent.googlecode.com/svn/trunk@10472 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix file progress calculation bug (with unit test)

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