Files renamed, folders restructured, FSMController added

FSMController is the base class for controllers that needs state
machine.