Added basic currying support to event handling.