add `changeMode` event
Merge pull request #80 from vitalets/master

add `changeMode` event
Merge remote-tracking branch 'upstream/master'
Add data-api support