initialize machinas on any reference (enter, exit, attr, machina())
change prefix to 'data-state-'
change transition callbacks to on(transition, fn)