made event store serialization agnostic (is currently assumed to be JSON in the clients)