Implemented basic events.

The Torrent class now has a callback method to which you can assign to.
It's called everytime a change occured in the torrent state, could be useful for
example to send a notification to the user when a torrent finishes.
Merged wip/torrent-event in master