Removed unneeded exceptions
Removed unneeded interfaces
Removed unneeded classes
Finished memory persistence test
Fixed types in event envelope
Fixed type hints for contracts
Added event envelope mapper test
Refactored some names