Change to use lua script for persisting events.
Add test for mixed event storage detection.
Begin adding optimistic lock support.
Add optimistic locking to redis store.