Added once() method.

The once() method subscribes a listener that is automatically
unsubscribed after its event is first triggered.