Added case statements to handle Event/EventGroup
Serialize Event and EventGroup with class_name

Used in the JS to distinguish items
Remove item and return full item
Render out EventGroups which have no `type`
Added JS template for groups