Added CommandId to IAggregateEvent in preparation for handling sync.
Shifted assignment of the id of the aggregate to the repository and command executor.