Refactor animation into StateMachineBase
Fix compiler warning.
Display state in inspector for debugging purposes.
Merge pull request #1 from cstack/am-in-base

Move animation into StateMachineBase.