Rename event_dict to context

event_dict = context + event
Use a special thread local class

Subclassing sucks
Refactor tests