Add Event.scala and fix SharedStore syntax errors