Clear revents when registering a new socket.
Otherwise, stale revents would trigger an immediate call to the
newly registered callback.
Merge into master from pull request #38:
Clear revents when registering a new socket. (https://github.com/floodlight/indigo/pull/38)