Support binding to events

R=arv
BUG=

Review URL: https://codereview.appspot.com/45020044