AnimationStateDelegate

addresses #31 
Can we make this null instead of undefined? That's more semantic from my point of view, since it will be undefined if it hasn't been set to anything anyway (that's how javascript works with undefined keys of objects). Null says that it has been defined but we haven't set it to anything yet, which is what we're going for here.