Refactor etorrent_peer_control to improve readability
Refactor etorrent_peer_control to improve readability

According to issue 66, we should not pass around state to helper
function, which is more readable.

beni55/etorrent,jlouis/etorrent