Change commit on eventStore to take an event array.