add pending methods

This branch exposes the pending() method from libevent to allow resetting timers for example.
Comes with test additions and documentation.
Maybe returning a possible timeout would be better, but this works already as expected from the libevent perspective.

Cheers,
Simon