Node mixins for subscribing to and emitting events