Fix peer key logic.

Previously were tracking by the http RemoteAddr, now tracking by the
announce params ip and port.
Handle events.
Merge branch 'master' of https://github.com/jackpal/Taipei-Torrent