Event store refactor.

The event store now uses the wikisearch iterators to provide alternating combinations of AND and OR queries that can also be nested within each other.

Next version will include range queries as well.