Refactored StateMachine plugin: moved all files to plugins/emulink (was in lib).