Basic event handling rewritten for editing.
Lone "type" is removed
Removed old code
Dataset view with new structure of events