Apply fix for LUCENE-5330 pruning the IndexWriter queue to get rid of pending event

Closes #4093
release [1.0.0.Beta1]
move to [1.0.0.Beta2] SNAP
Index Stats: Add support for segments stats
closes #4101