Allow $on events to be deregistered

Creating an event on scope with $on returns a function that, when called, deregisters the event listener