Fixed an issue with the didSwitch state event not passing in the previous/current state back to the callback.
Merge pull request #58 from tisho/tisho/fix-state-didswitch

Fix didSwitch not passing previous, current state names to callback