Inject the EventRepository in apps and spaces controller

Follow existing pattern to inject event repository dependency

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>