fix(event_history) fix a bug in event queue

1. Fix a bug in event_history, which might cause an error when scan through a full queue. 
2. Fix https://github.com/coreos/etcd/issues/379
3. Simplify the logic since now we do not have duplicate index in event history