Fix RedisDriver.

This commit makes serialization and deserialization of an event work via a wrapper class with info on how to serialize and deserialize the object.