Pass event object to button click handlers.

Button click handlers should have access to original event objects.
It is sometimes useful, for example to call .preventDefault().
This commit passes event object as an additional argument in the click handler call.
It shouldn't break any existing code.