Created a factory to handle groups of promises and Firebase handlers.
Removing events now also removes attendances.
Removed variable dependencies in `addAttendance` function, relying on only id attributes.