New event model

Changed the way events are stored. Now store one flat Event object, instead of having an event group.