add state machine
Merge branch 'master' of https://github.com/RayRiver/misc

Conflicts:
	cocos2dx/CocosLuaGame/src/app/components/state_machine.lua