Added methods for file resize. Added stream to write pieces.
Fixed WinRT file get size. Added piece validation. Added read method for piece stream.
Added function for getting relative ms. Added logic for measuring current download and upload speed.
Added simple logic for rating peers.
Added logic for errors on sockets
Added logic for ignoring operations that were sent to peer connection old socket.
merge from master
small wrapper update
peers in session moved to shared ptr
Merge branch 'master'