update Hook class
Merge branch 'master' of https://github.com/cherrylabs/arx-core