Fixed FSMComponent and Added Serialization Framework.