Create event state

@fiallega take a look at what we've done. We think it's ready for master. @znja 
maybe we want to change the name of the file to eventController.js