Added wildcard support for events source, final state definition and is_finished method

Both features are ported from Jake Gordon's FSM.