EventedObject 2.1: added register_events() for registering several events at once.