Dynamic transitions with effects and guards

Solves https://github.com/creynders/jsfsa/issues/5 by introducing a function as event handler in addition to a static target state name