Added dom() method.
Updated test.
Callbacks registered with on() / off() use the component's scope now.