add more state to peer connections. use peer-specific max piece req size.
setting the ground for extended handshake improvements
fix lots of warnings