Cleaned event transition handler

To fix Issue #24 the handler for the 'publish' transition was
generalized and made to accept 'cancel' as well. This commit reflects
this change with a more suitable name.

This commit closes issue #24