Small breaking change: Passing state to individual state callbacks, for the sake of uniformity with the global callbacks and for ease of retrieving state within callback. Updated README and tests.