Store state in behavior tree

Closes https://github.com/PistonDevelopers/sprite/issues/12
Merge pull request #13 from bvssvni/master

Store state in behavior tree