Revised implemetation of events (compatible with jsonpickle module).