Finished DomainEvents implementation.
Added ContextState helper.