[fix] Allow anonymous functions in states declaration hash

Sometimes, when the callbacks are short, it's easier to use
anonymous functions :

states: {
    visible: {
        enter: [function() { this.el.show(); }],
        leave: [function() { this.el.hide(); }]
    }
}
Merge pull request #26 from Fab1en/master

Allow anonymous functions in states declaration hash